﻿using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Text;
using WebApiV2.Data;
using WebApiV2.Data.Model;
using WebApiV2.Domain.Enum;

namespace WebApiV2.Interface.Log
{
    
    //接口
     public interface ILog
    {
        Logs GetLogById(int id);
        
        void Insert(Logs log);

        void Delete(Logs log);

        //根据时间查询
        IEnumerable<Logs> MultiQuery(DateTime beginTime, DateTime endTime, LogsLever logLevel, int userId = 0);

        //清除日志
        void Clear();
    }
}
